package com.study.sxc.Entity;

import java.math.BigDecimal;
import java.util.Date;

public class Usage {
    private Integer usageId; // 上机记录ID
    private Integer machineId; // 机器ID
    private Integer userId; // 用户ID
    private Integer staffId; // 管理人员ID
    private Date startTime; // 开始时间
    private Date endTime; // 结束时间
    private Integer duration; // 持续时间（分钟）
    private BigDecimal cost; // 费用
    private String paymentStatus; // 支付状态

    public Usage() {}

    public Usage(Integer usageId, Integer machineId, Integer userId, Integer staffId, Date startTime, Date endTime, Integer duration, BigDecimal cost, String paymentStatus) {
        this.usageId = usageId;
        this.machineId = machineId;
        this.userId = userId;
        this.staffId = staffId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.duration = duration;
        this.cost = cost;
        this.paymentStatus = paymentStatus;
    }

    public Integer getUsageId() { return usageId; }
    public void setUsageId(Integer usageId) { this.usageId = usageId; }
    public Integer getMachineId() { return machineId; }
    public void setMachineId(Integer machineId) { this.machineId = machineId; }
    public Integer getUserId() { return userId; }
    public void setUserId(Integer userId) { this.userId = userId; }
    public Integer getStaffId() { return staffId; }
    public void setStaffId(Integer staffId) { this.staffId = staffId; }
    public Date getStartTime() { return startTime; }
    public void setStartTime(Date startTime) { this.startTime = startTime; }
    public Date getEndTime() { return endTime; }
    public void setEndTime(Date endTime) { this.endTime = endTime; }
    public Integer getDuration() { return duration; }
    public void setDuration(Integer duration) { this.duration = duration; }
    public String getPaymentStatus() { return paymentStatus; }
    public void setPaymentStatus(String paymentStatus) { this.paymentStatus = paymentStatus; }
    public BigDecimal getCost() { return cost; }
    public void setCost(BigDecimal cost) { this.cost = cost; }

    @Override
    public String toString() {
        return "Usage{" +
                "usageId=" + usageId +
                ", machineId=" + machineId +
                ", userId=" + userId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", paymentStatus='" + paymentStatus + '\'' +
                '}';
    }
}